<%@page import="cn.edu.hust.sse.software7.class3.entities.EBProduct"%>
<%@page
	import="com.google.appengine.api.blobstore.BlobstoreServiceFactory"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html>
<head>
<title>Admin</title>
</head>
<body>
<%
	EBProduct prod = (EBProduct) session.getAttribute("updateProduct");
%>
<form action="/product?method=updateprod" method="post"
	enctype="multipart/form-data">
<table style="background-color: activeborder; width: 100%; border: thick;">
	<tr style=" border: thick;">
		<td rowspan="8"><img
			src="/image?type=3&id=<%=prod.getProductId()%>" /><br />
		<input type="file" name="prodImage" /><br />
		如果更换图片请直接添加。</td>
		<td>商品ID</td>
		<td><%=prod.getProductId()%></td>
	</tr>
	<tr>
		<td>商品名称</td>
		<td><%=prod.getProductName()%></td>
	</tr>
	<tr>
		<td>商品种类</td>
		<td><%=prod.getMyCategoryId()%></td>
	</tr>
	<tr>
		<td>商品价格</td>
		<td><input type="text" name="prodLowestPrice"
			value="<%=prod.getLowestPrice()%>" />$</td>
	</tr>

	<tr>
		<td>运费</td>
		<td><input type="text" name="tradingPrice"
			value="<%=prod.getTradingPrice()%>" />$</td>
	</tr>

	<tr>
		<td>一口成交价</td>
		<td><input type="text" name="freight"
			value="<%=prod.getFreight()%>" />$</td>
	</tr>
	<tr>
		<td>商品数量</td>
		<td><input type="text" name="mount" value="<%=prod.getMount()%>" /></td>
	</tr>
	<tr>
		<td>商品描述</td>
		<td><textarea name="description" cols="50" rows="3"">
			<%=prod.getProductDescription()%></textarea></td>
	</tr>
	<tr>
		<td><input type="reset" value="重  置" /></td>
		<td><input type="submit" value="添  加" /></td>
	</tr>
</table>
</form>
</body>
</html>